import './assets/main.css'

import { createApp } from 'vue'
import { createPinia } from 'pinia'
// import { createRouter, createWebHistory } from 'vue-router';
import App from './App.vue'
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
// import axios from 'axios'



// 自定义组件
import router from './router'
// 自动生成路由
// import routes from 'virtual:generated-pages';
const app = createApp(App)
// app.provide('$axios', axios)
app.use(createPinia())
app.use(ElementPlus)
// const router = createRouter({
//     history: createWebHistory(),
//     routes,
// });
app.use(router)

// v-3 全局 挂载方式
app.config.globalProperties.msg ='my test'
app.config.globalInfo = {
    msg: 'gloabl info'
}
app.mount('#app')
